package com.itcast.n9_垃圾回收;

import java.io.IOException;

/**
 * @program: jvm
 * @description: -verbose:gc
 * @author: flyduck
 * @create: 2024-09-23 16:30
 **/
public class Test06_查看GCRoot对象 {
    public static A2 a3 = null;

    public static void main(String[] args) throws IOException {
        A2 a2 = new A2();
        B2 b2 = new B2();
        a2.b2 = b2;
        b2.a2 = a2;

        a3 = a2;
        System.in.read();
    }
}

class A2 {
    B2 b2;
}

class B2 {
    A2 a2;
}
